
<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>

<?foreach ($query as $row){
			$id			= $row->id;
			$judul		= $row->judul;
			$date	 	= $row->date;
			$isi	 	= $row->isi;
			$tipe		= $row->tipe_agenda;
}
		?>
			
<div class="wrap">
	<a><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Tulis -> Agenda</a></h3>

<div id="dashboard-widgets-wrap">
<form action="<?=site_url('administrator/update_agenda')?>" method='POST'>
<table>
<tr>
<td>
<div>
<h3><label for="title">Judul Agenda</label></h3>
<input type="text" name="agenda_judul" size="30" value="<?=$judul;?>" style="width:100%"/>
<input type="hidden" name="id" value="<?=$id?>">
</div></td></tr>
<tr>
<td>
<div style="float:left;">
<h3><label for="title">Tipe Agenda</label></h3>
<select name='agenda_tipe' tabindex='6' id='post_status' style="font-size:14px;width:120px">
<option <?if($tipe=="event"){echo "selected='selected'";}?> value='event'>Event</option>
<option <?if($tipe=="open_house"){echo "selected='selected'";}?> value='open_house'>Open House</option>
</select>&nbsp;&nbsp;&nbsp;
</div>
<div>
<h3><label for="title">Tanggal Agenda</label></h3>
<input type="text" name="agenda_tanggal" size="17" value="<?=$date?>" id="DateAgenda" readonly>
<img src="<?=base_url()?>css/images/date.jpg" onClick="SelectDate('Date1')" style="cursor:pointer"/>
</div></td></tr>
<tr>
<td>
<div>
<h3><label for="title">Isi Agenda</label></h3>
<textarea id="teks" cols="70" rows="5" name="agenda_isi" style="width:100%"><?=$isi?></textarea>
</div>
</td>
</tr>
<tr>
<td>
<div><br>
<input type="submit" name="submit" class="button-primary" value="Perbarui Agenda">
</div>
</td>
</tr>
</table>
</form>
</div>
</div><!-- wrap -->


<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
